package com.taobao.api.response;

import java.util.Date;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: taobao.eticket.merchant.tbma.get response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class EticketMerchantTbmaGetResponse extends TaobaoResponse {

	private static final long serialVersionUID = 6436752266156555269L;

	/** 
	 * respBody
	 */
	@ApiField("resp_body")
	private QueryTbMaCallbackResp respBody;

	/** 
	 * subCode
	 */
	@ApiField("ret_code")
	private String retCode;

	/** 
	 * subMsg
	 */
	@ApiField("ret_msg")
	private String retMsg;


	public void setRespBody(QueryTbMaCallbackResp respBody) {
		this.respBody = respBody;
	}
	public QueryTbMaCallbackResp getRespBody( ) {
		return this.respBody;
	}

	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}
	public String getRetCode( ) {
		return this.retCode;
	}

	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}
	public String getRetMsg( ) {
		return this.retMsg;
	}
	
	/**
 * attributes
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class Attributes extends TaobaoObject {

	private static final long serialVersionUID = 1322171913935757697L;

	/**
		 * itemId
		 */
		@ApiField("item_id")
		private String itemId;
	

	public String getItemId() {
			return this.itemId;
		}
		public void setItemId(String itemId) {
			this.itemId = itemId;
		}

}

	/**
 * certificateDTO
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class CertificateDto extends TaobaoObject {

	private static final long serialVersionUID = 2738774516459324221L;

	/**
		 * attributes
		 */
		@ApiField("attributes")
		private Attributes attributes;
		/**
		 * availableNum
		 */
		@ApiField("available_num")
		private Long availableNum;
		/**
		 * bizType
		 */
		@ApiField("biz_type")
		private Long bizType;
		/**
		 * code
		 */
		@ApiField("code")
		private String code;
		/**
		 * codeStatus
		 */
		@ApiField("code_status")
		private Long codeStatus;
		/**
		 * endTime
		 */
		@ApiField("end_time")
		private Date endTime;
		/**
		 * initialNum
		 */
		@ApiField("initial_num")
		private Long initialNum;
		/**
		 * lockedNum
		 */
		@ApiField("locked_num")
		private Long lockedNum;
		/**
		 * outerId
		 */
		@ApiField("outer_id")
		private String outerId;
		/**
		 * qrCodeUrl
		 */
		@ApiField("qr_code_url")
		private String qrCodeUrl;
		/**
		 * startTime
		 */
		@ApiField("start_time")
		private Date startTime;
		/**
		 * usedNum
		 */
		@ApiField("used_num")
		private Long usedNum;
	

	public Attributes getAttributes() {
			return this.attributes;
		}
		public void setAttributes(Attributes attributes) {
			this.attributes = attributes;
		}
		public Long getAvailableNum() {
			return this.availableNum;
		}
		public void setAvailableNum(Long availableNum) {
			this.availableNum = availableNum;
		}
		public Long getBizType() {
			return this.bizType;
		}
		public void setBizType(Long bizType) {
			this.bizType = bizType;
		}
		public String getCode() {
			return this.code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public Long getCodeStatus() {
			return this.codeStatus;
		}
		public void setCodeStatus(Long codeStatus) {
			this.codeStatus = codeStatus;
		}
		public Date getEndTime() {
			return this.endTime;
		}
		public void setEndTime(Date endTime) {
			this.endTime = endTime;
		}
		public Long getInitialNum() {
			return this.initialNum;
		}
		public void setInitialNum(Long initialNum) {
			this.initialNum = initialNum;
		}
		public Long getLockedNum() {
			return this.lockedNum;
		}
		public void setLockedNum(Long lockedNum) {
			this.lockedNum = lockedNum;
		}
		public String getOuterId() {
			return this.outerId;
		}
		public void setOuterId(String outerId) {
			this.outerId = outerId;
		}
		public String getQrCodeUrl() {
			return this.qrCodeUrl;
		}
		public void setQrCodeUrl(String qrCodeUrl) {
			this.qrCodeUrl = qrCodeUrl;
		}
		public Date getStartTime() {
			return this.startTime;
		}
		public void setStartTime(Date startTime) {
			this.startTime = startTime;
		}
		public Long getUsedNum() {
			return this.usedNum;
		}
		public void setUsedNum(Long usedNum) {
			this.usedNum = usedNum;
		}

}

	/**
 * respBody
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class QueryTbMaCallbackResp extends TaobaoObject {

	private static final long serialVersionUID = 2857463942644251399L;

	/**
		 * certificateDTO
		 */
		@ApiField("certificate")
		private CertificateDto certificate;
	

	public CertificateDto getCertificate() {
			return this.certificate;
		}
		public void setCertificate(CertificateDto certificate) {
			this.certificate = certificate;
		}

}



}
